
<div class="inright">
<h4 class="qieh {{if $index_act=='goods'}}hover{{/if}}"><a href="index.php?index_act=goods">看看产品</a></h4>
<h4 class="qieh {{if $index_act=='cat'}}hover{{/if}}"><a href="index.php?index_act=cat">见见团队</a></h4>
<h4 class="qieh {{if $index_act=='cat_log'}}hover{{/if}}"><a href="index.php?index_act=cat_log">瞅瞅日志</a></h4>

{{if $index_act=='goods'}}

<div class="f_right">
	<select class="pull-left" onchange="location.href='index.php?index_act=goods&type_id='+this.value">
    <option>全部</option>
    {{foreach from=$typeids item=list key=key}}
    <option value="{{$list.type_id}}" {{if $type_id==$list.type_id}} selected="selected"{{/if}}>{{$list.name}}</option>
    {{/foreach}}
    </select>
    {{if $sort=='desc'}}<a href="{{$url}}&sort=asc"  ><i class="glyphicon glyphicon-arrow-down"></i>降序</a>{{else}}<a href="{{$url}}&sort=desc" class="hover"><i class="glyphicon glyphicon-arrow-up"></i>升序</a>{{/if}}
  
    <a href="index.php?index_act=goods&order=goods_number" {{if $order=='goods_number'}}class="hover"{{/if}}>销售量</a>
    <a href="index.php?index_act=goods&order=haoping_per" {{if $order=='haoping_per'}}class="hover"{{/if}}>好评</a>
    <a href="index.php?index_act=goods&order=shop_price" {{if $order=='shop_price'}}class="hover"{{/if}}>售价</a> 
    <a href="index.php?index_act=goods&order=add_time" {{if $order=='add_time'}}class="hover"{{/if}}>时间</a> 
      <a href="index.php?index_act=goods&order=sort" {{if $order=='sort'}}class="hover"{{/if}}>推荐</a>
   <a href="index.php?index_act=goods&order=click_count" {{if $order=='click_count'}}class="hover"{{/if}}>点击量</a> 
 
</div>
{{else if $index_act=='cat' }}
<div class="f_right">
	<select class="pull-left" onchange="location.href='index.php?index_act=cat&type_id='+this.value">
    <option>全部</option>
    {{foreach from=$typeids item=list key=key}}
    <option value="{{$list.type_id}}" {{if $type_id==$list.type_id}} selected="selected"{{/if}}>{{$list.name}}</option>
    {{/foreach}}
    </select>
    {{if $sort=='desc'}}<a href="{{$url}}&sort=asc" ><i class="glyphicon glyphicon-arrow-down"></i>降序</a>{{else}}<a href="{{$url}}&sort=desc" class="hover"><i class="glyphicon glyphicon-arrow-up"></i>升序</a>{{/if}}
    <a href="index.php?index_act=cat&order=goods_number" {{if $order=='goods_number'}}class="hover"{{/if}} >销售量</a>
    <a href="index.php?index_act=cat&order=goods_amount" {{if $order=='goods_amount'}}class="hover"{{/if}}>商品数</a> 
    <a href="index.php?index_act=cat&order=click_count" {{if $order=='click_count'}}class="hover"{{/if}}>访问量</a>
    <a href="index.php?index_act=cat&order=add_time" {{if $order=='add_time'}}class="hover"{{/if}}>时间</a>        
    <a href="index.php?index_act=cat&order=order_amount" {{if $order=='order_amount'}}class="hover"{{/if}}>销售额</a> 
     
    

</div>
{{/if}}
<div class="xuaninfo fongbg">
{{if $index_act=='cat'}}
	{{foreach from=$cat item=list key=key}}
      <div class="xuanlist">
        <dl>
         <dt class="relative"> {{if $list.add_time-strtotime('-5 days')>0}}<em class="adnew"></em>{{/if}}<a href="{{$list.url}}"><img src="{{$list.thumb}}" width="220" height="150"/></a>{{if $list.is_show==2}}<em class="adv"></em>{{/if}}{{if $list.sort_order<10}}<em class="adtj"></em>{{/if}} </dt>
          <dd class="cpming"><a href="{{$list.url}}">  {{$list.mag.type}} {{$list.cat_name}}</a></dd>
          <dd class="numing"><span class="icount"><b>总销售额:</b><i>{{$list.order_amount}}</i></span><span class="icount"><b>访问量:</b><i>{{$list.click_count}}</i></span><span class="icount"><b>产品数:</b><i>{{$list.goods_amount}}</i></span></dd>
          <dd class="diming"><a href="{{$list.url}}">{{$list.title}}</a></dd>
          <dd class="dizhang">{{$list.address}} </dd>
        </dl>
      </div>
     {{/foreach}}
{{else if $index_act=='cat_log'}}
{{include file="./log_filter.htm"}}
{{else}}

	 {{foreach from=$last item=list key=key}}
      <div class="xuanlist">
        <dl>
          <dt class="relative"> <em class="adnew"></em><a href="{{$list.url}}" title="简介：{{$list.goods_desc}}"><img src="{{$list.goods_thumb}}" width="220" height="150"/></a></dt>
          <dd class="cpming"><a href="{{$list.url}}"> {{$list.goods_name}}</a></dd>
          <dd class="dqming">
         
          {{if $list.cat_type==1}}
            <div class="half">投资数：<i> {{$list.zan}}</i></div>
          {{else}}
          <div class="half">销售量：<i> {{$list.goods_number}}</i></div>
          {{/if}}
           <div class="half">售价:<i> {{$list.shop_priced}}</i></div><div class="half">好评:<i>{{$per_haop = $list.haoping/($list.h.h3+$list.h.h2+$list.h.h1)}}
                {{if $per_haop}}{{round($per_haop)}}{{else}}60{{/if}}% </i></div></dd>
          <dd class="dizhang"><a href="category.php?cat_id={{$list.cat_id}}" title="{{$list.style_name}}">{{$list.style_name}} </a></dd>
        </dl>
      </div>
     {{/foreach}}




    {{foreach from=$goods_list item=list key=key}}
      <div class="xuanlist">
        <dl>
          <dt class="relative"> {{if $list.time-strtotime('-5 days')>0}}<em class="adnew"></em>{{/if}}{{if $list.goods_weight==2}}<em class="adtj"></em>{{/if}}<a href="{{$list.url}}" title="简介：{{$list.goods_desc}}"><img src="{{$list.goods_thumb}}" width="220" height="150"/></a></dt>
          <dd class="cpming"><a href="{{$list.url}}"> {{$list.goods_name}}</a></dd>
          <dd class="dqming">
         
          {{if $list.cat_type==1}}
            <div class="half">投资数：<i> {{$list.zan}}</i></div>
          {{else}}
          <div class="half">销售量：<i> {{$list.goods_number}}</i></div>
          {{/if}}
           <div class="half">售价:<i> {{$list.shop_priced}}</i></div><div class="half">好评:<i>{{$per_haop = $list.haoping/($list.h.h3+$list.h.h2+$list.h.h1)}}
                {{if $per_haop}}{{round($per_haop)}}{{else}}60{{/if}}% </i></div></dd>
          <dd class="dizhang"><a href="category.php?cat_id={{$list.cat_id}}" title="{{$list.style_name}}">{{$list.style_name}}</a></dd>
        </dl>
      </div>
     {{/foreach}}
 
{{/if}}
</div>

{{include file="./pager.htm"}}

</div>